home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Examples / quickieControls.eve < prev    next >
Encoding:
Text File  |  1995-04-10  |  1.4 KB  |  49 lines

  1. # note: this file is intended to be use in conjunction with
  2. # quickieControls.nib.  The idea is this: you have some eve file, which
  3. # perhaps you got by dropping a RIB file into a WW3DWell and exporting
  4. # it as eve.  You now want to manipulate it; translate it so that it
  5. # rotates about some particular point, scale it non-uniformly, skew it
  6. # slightly, rotate it about one axis, etc.  Open up the eve file and put
  7. # the following "set" commands at the top of the file.  Then just after
  8. # the "startShape" command put the following "EveCmd" commands.  Then
  9. # drop that eve file into the WW3DWell, and then drop the
  10. # quickieControls.nib into the WW3DWell.  et voila - you now can control
  11. # stuff.  It's usually very handy to have the the "draw origin" switch
  12. # selected in the qrman controls of the camera on the WW3DWell's control
  13. # panel (bring it up by click the edge of the WW3DWell).  Enjoy!
  14.  
  15. # color
  16. set color {1 1 1}
  17. # scale controls
  18. set xS 1.0
  19. set yS 1.0
  20. set zS 1.0
  21. # translate controls
  22. set xT 0
  23. set yT 0
  24. set zT 0
  25. # rotate controls
  26. set xR 0
  27. set yR 0
  28. set zR 0
  29. #
  30. # skew controls
  31. set aSk 0
  32. set x1Sk 1
  33. set y1Sk 0
  34. set z1Sk 0
  35. set x2Sk 1
  36. set y2Sk 0
  37. set z2Sk 0
  38.  
  39.   animatable: {Color $color}
  40.   animatable: {Scale $xS $yS $zS}
  41.   animatable: {Translate $xT $yT $zT}
  42.   animatable: {Rotate $xR 1 0 0 }
  43.   animatable: {Rotate $yR 0 1 0 }
  44.   animatable: {Rotate $zR 0 0 1 }
  45.   animatable: {Skew $aSk $x1Sk $y1Sk $z1Sk $x2Sk $y2Sk $z2Sk}
  46.  
  47.